
<div id="content" class="norightsidebar">
<div class="inner">
<?php if ($products) { ?>

<h3><?php echo $heading_title; ?></h3>
  <table>
  <?php for ($i = 0; $i < sizeof($products); $i = $i + 3) { ?>
    <tr>
      <?php for ($j = $i; $j < ($i + 3); $j++) { ?>
      <td style="width: 25%;"><?php if (isset($products[$j])) { ?>
       <div class="searchresult2">
       <?php if($products[$j]['stock']==2){?>
			<div class="banner-small <?php echo $l_reduced;?>"></div>
			<?php }else{?>
			<div class="banner-small <?php echo $l_sold;?>"></div>
		<?php }?>
      <a href="<?php echo str_replace('&', '&amp;', $products[$j]['href']); ?>"><img src="<?php echo $products[$j]['thumb_home']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a>
      
      <div class="shadow-small-home"></div>
      
      <?php } ?>
      </div>
      </td>
      <?php } ?>
    </tr>
    <?php } ?>
  </table>
</div></div>
<?php } ?>